//
//  UIImageView+Extension.swift
//  ttjx
//
//  Created by 文 on 2021/5/17.
//  Copyright © 2021 ttjx. All rights reserved.
//

import UIKit
import Kingfisher

extension UIImageView{
    public func setImgUrl(urlString:String){
        DLLog(message: "图片加载地址：\(urlString)")
        guard let imgUrl = URL(string: urlString) else { return }
        self.kf.setImage(with: imgUrl, placeholder: nil, options: [.transition(.fade(0.2))])
    }
    
    public func setImgLocal(imgName:String){
        self.image = UIImage.init(named: imgName)
    }
}
